import request from '@/utils/request'


/**
 * 获取用户列表
 * @param data
 * @returns {AxiosPromise}
 */
export function getUSers() {
    return request({
        url: '/share/getUser',
        method: 'get',
    })
}

/**
 * 分享操作
 * @param data
 * @param touserId
 * @returns {AxiosPromise}
 */
export function share(data,touserId){
    return request({
        url: '/share/sharer?touserId='+ touserId,
        method: 'post',
        data: data
    })
}

/**
 * 获取分享信息
 * @returns {AxiosPromise}
 */
export function get(){
    return request({
        url: '/share/get',
        method: 'get',
    })
}

/**
 * 删除
 * @param id
 */
export function deleteshare(id){
    return request({
        url: '/share/delete',
        method: 'post',
        params:{
            id: id
        }
    })
}
